package com.eastfair.venuebooking.api;

import com.eastfair.core.base.R;
import com.eastfair.venueservice.dto.DrawingDTO;
import com.eastfair.venueservice.vo.DrawingVO;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;

import java.util.List;

/**
 * 综合服务图纸分类 feign.
 *
 * @author dqq
 * @date 2022 /10/28
 */
@FeignClient("venue-services-manage/drawing")
public interface DrawingFeign {

    /**
     * 图纸列表
     *
     * @param drawingPageQuery the drawing page query
     * @return r
     */
    @PostMapping("/getDrawingList")
    R<List<DrawingVO>> getDrawingList(@RequestBody DrawingDTO drawingPageQuery);

    /**
     * id获取图纸详情.
     *
     * @param id the id
     * @return the by id
     */
    @GetMapping("/get/{id}")
    R<DrawingVO> getById(@PathVariable("id") Long id);
}